package com.example.pathprotectsystem.controller;

import com.example.pathprotectsystem.pojo.AskList;
import com.example.pathprotectsystem.pojo.PageBean;
import com.example.pathprotectsystem.pojo.PathLevelModel;
import com.example.pathprotectsystem.pojo.Result;
import com.example.pathprotectsystem.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EvaluateController {
    @Autowired
    private EvaluateService evaluateService;
    @PostMapping("/getpathlevelall")
    public Result<List<PathLevelModel>> getpathlevelall(@RequestBody AskList askList){
        List<PathLevelModel> p = evaluateService.getpathlevelall(askList);
        return Result.success(p);
    }
}
